

#include <irrlicht.h>
#include "CForceArea.h"
#include "CMCGlu.h"

using namespace MarCore;

class equation2df;

CForceArea::CForceArea():
falloff(0)
{

    origin = irr::core::vector3df(0,0,0);
    end = irr::core::vector3df(1,0,0);
    energy = 10.f;
    max_falloff_dist = 5.f;

};

//! Constructor
CForceArea::CForceArea( equation2df* falloff_, const core::vector3df& origin_,
                       const core::vector3df& end_, f32 energy_,
                       f32 max_falloff_dist_ )
{

    falloff =falloff_; //a two (2) dimensional equation describing the falloff of force
    origin =origin_; //where it starts
    end =end_; //where it ends
    energy =energy_; //energy of the force area
    max_falloff_dist =max_falloff_dist_; //max distance, none = 0

    //col_shape =new btBU_Simplex1to4( glu->btVector3FromVector3df( origin ),glu->btVector3FromVector3df( end ) );

};

CForceArea::~CForceArea()
{

};
